<?php
class StudentVerify extends Zend_Db_Table
{
	protected $_name ="student_verify";
	protected $_primary = 'id';

 //根据id 查询student_verify
    public function getstudent_verifyByid($id){
          $select = $this->select();
          $select->where("id=".$id);
          return $this->fetchAll($select)->toArray();
    }
 //根据verify_id 查询student_verify
    public function getstudent_verifyByverify_id($verify_id){
          $select = $this->select();
          $select->where("verify_id=".$verify_id);
          return $this->fetchAll($select)->toArray();
    }
	
	public function getverifybystudentid($student_id){
		$select = $this->select();
		$select->where("student_id=".$student_id);
		return $this->fetchAll($select)->toArray();
	}

 //更新student_verify
    public function updatestudent_verifyByid($array,$id){

		$db = $this->getAdapter();
		$where=$db->quoteInto('id = ?', $id);
		$this->update($array, $where);
                return true;
	}
//删除student_verify
     public function delstudent_verifyByid($student_id, $verify_id){
          $where = 'student_id = '.$student_id.' and verify_id = '.$verify_id;
         $this->delete($where);
         return true;
    }


}

